import math
a=int(input("Введите число"))
if a>999 and a<10000:
    b=a//1000
    bc=a//100
    bcd=a//10
    c=a%1000//100
    cd=a%1000//10
    cde=a%1000
    d=a%100//10
    de=a%100
    e=a%10
    B=[a, b, bc,bcd,c,cd,cde,d,de,e]
    print(B)
else:
    print(0)
